<?php 
//post参数
$post_data = array(
	'mobile' => '13060601010',
	'style'	 => 3,
	'type'	 => 2,
	'handle' => array(
				'money' => array('value'=>20,'intro'=>'买东西'),
				'integral'=>array('value'=>50,'intro'=>'用积分省现金买东西')
	),
	'user' => array('groupid'=>1,'realname'=>'大名','sex'=>1,'mobile'=>'13060601010','mail'=>'goolegegle@gmail.com','qq'=>'196551515','money'=>99999,'integral'=>88888,'isok'=>1)		
);
$re = send_post('http://yifeng.mxsoft.net/unify.php',$post_data);
print_r($re);

/**
* 发送post请求
* @author Tony
* @param string $url 请求地址
* @param array $post_data post键值对数据
* @return string
*/
function send_post($url, $post_data) {
	$postdata = http_build_query($post_data);
	$options = array(
			'http' => array(
					'method' => 'POST',
					'header' => 'Content-type:application/x-www-form-urlencoded',
					'content' => $postdata,
					'timeout' => 15 * 60 // 超时时间（单位:s）
			)
	);

	$context = stream_context_create($options);
	$result = file_get_contents($url, false, $context);
	return $result;
}